<?php

class A
{
	
	public $name ="学并思";
	public $errorInfo = [];
	public function run()
	{
		echo "8778787";
	}
	public function __isset($name)
	{
		var_dump($name);
	}

	public function __unset($name)
	{
		$this->errorInfo[] = ['ctime'=>time(),'var'=>$name];
	}

	public function __get($name)
	{
		return $name;
	}

	public function __set($name,$value)
	{
		var_dump($name,$value);
	}

	public function __call($name,$data)
	{
		$this->run();
	}
}

// $obj = new A();

// $obj->dsfdsfsdfsdfsafsdfdsf(788978,34,543,4,35);

// $obj->yyyy=8888;

// unset($obj->color);
function __autoload($classname)
{
	$file = "./".$classname.".class.php";
	if(file_exists($file)){
		include $file;
	}
}


$obj = new Reg();

var_dump($obj);
$obj = new Login();

var_dump($obj);




